package com.asc.mywriter.serciceImpl;

import com.asc.mywriter.bean.ProOrder;
import com.asc.mywriter.mapper.OrderMapper;
import com.asc.mywriter.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;

@Service
public class OrderServiceImpl implements OrderService {

    @Autowired
    OrderMapper orderMapper;

    @Override
    public void saveOrder(Integer userId, Integer proId) {
        orderMapper.saveOrder(userId,proId,new Date());
    }
}
